import { RaceStatusEnum, RaceSystemEnum, RaceTypeEnum } from "@/views/competition/config/enum";

export interface IResponseType<T> {
	code: number;
	data: T;
	msg: string;
}

export interface IRaceListParams {
	pageNum: number,
	pageSize: number,
	extraParamMap: {
		raceName: string,
		raceStatus: string
	}
}

export interface ITableColumnResponse {
  raceId: number;
  raceName: string;
  matchStartDate: string;
  raceSystem: RaceSystemEnum;
  raceType: RaceTypeEnum;
  raceStatus: RaceStatusEnum;
}

export interface IRaceListResponseData {
  rows: ITableColumnResponse[]
  total: number
}

